package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.ExamPaperQuestion;
import com.zhijian.medical.entity.vo.request.ExamPaperQuestionSearchVo;
import com.zhijian.medical.entity.vo.response.ExamPaperQuestionVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 考核-试卷生成的题目表 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-18 18:27:06
 */
public interface ExamPaperQuestionService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    ExamPaperQuestion selectById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 新增
    *
    * @param examPaperQuestion
    * @return
    */
    Long insert(ExamPaperQuestion examPaperQuestion);

    /**
    * 更改
    *
    * @param examPaperQuestion
    * @return
    */
    boolean update(ExamPaperQuestion examPaperQuestion);

    /**
    * 总数
    *
    * @param examPaperQuestionSearchVo
    * @return
    */
    Integer count(ExamPaperQuestionSearchVo examPaperQuestionSearchVo);

    /**
    * 列表
    *
    * @param examPaperQuestionSearchVo
    * @return
    */
    List<ExamPaperQuestionVo> selectList(ExamPaperQuestionSearchVo examPaperQuestionSearchVo);

    /**
    * 分页查询
    *
    * @param examPaperQuestionSearchVo
    * @return
    */
    Page<ExamPaperQuestionVo> selectPage(ExamPaperQuestionSearchVo examPaperQuestionSearchVo);
}